package de.homelabs.moonrat.metadata;

public class MetaDataParser {

	public static MoonratPageMetaData parseMetaData(String content) {
		//TODO: what to do
		MoonratPageMetaData metaData = new MoonratPageMetaData();
		int startPosTitle = content.indexOf("mRTitle:");
		int endPosTitle = content.indexOf("\r", startPosTitle);
		String sub = (String) content.subSequence(startPosTitle, endPosTitle);
		sub = sub.replaceAll("mRTitle:", "");
		metaData.setPageTitle(sub);
		return metaData;
	}

}
